package cn.mesmile.order.service;

import cn.mesmile.daomain.Video;
import cn.mesmile.order.service.fallback.VideoServiceFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author zb
 * @version 1.0
 * @date 2020/10/24 15:47
 * @description
 */
@FeignClient(value = "xdclass-video-service", fallback = VideoServiceFallback.class)
public interface VideoService {

    @GetMapping("/api/v1/video/getVideoById")
    Video getVideoById (@RequestParam("videoId")Integer videoId);

}
